<template>
  <a-card hoverable>
    <div slot="title" class="title">
      <div class="titleIcon">
        <a-icon type="fa fa-cubes" style="vertical-align: middle;" />
      </div>
      成都
    </div>
    <div class="cardBody">
      <div class="rowBlock">
        <div class="rowIcon">
          <a-icon type="fa fa-bell" style="color: #1890ff; margin-right: 4px;" />
        </div>
        <div class="rowName">提示</div>
        <div class="rowValue">0</div>
        <div class="rowUnit">次</div>
      </div>
    </div>
  </a-card>
</template>

<script>
export default {
  name: 'briefBlock',
  components: {},

  data() {
    return {
      params: {}
    };
  },
  methods: {
    onRefresh() {
      console.log(this.params.date);
    }
  }
};
</script>

<style lang="less" scoped>
.title {
  color: rgb(16, 142, 233);
  font-size: 24px;
  .titleIcon {
    margin: 0 auto;
    background-color: rgb(16, 142, 233) !important;
    color: #ffffff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    text-align: center;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
  }
}

.cardBody {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  -webkit-flex-direction: column;
  align-content: stretch;
  -webkit-align-content: stretch;
  align-items: stretch;
  flex-flow: column;
  width: 100%;

  .rowBlock {
    flex: 1;
    border: 1px solid rgb(239, 239, 239);
    background-color: rgb(239, 239, 239);
    padding: 0 0 0 16px;
    cursor: pointer;
    &:not(:first-child) {
      margin-top: 8px;
    }
    &:hover {
      padding-left: 18px;
      border: 1px solid rgb(16, 142, 233);
      background-color: #f6f6f6;
    }

    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    -webkit-flex-direction: row;
    align-items: center;

    .rowIcon {
      width: 30px;
      line-height: 28px;
    }

    .rowName {
      flex: 1;
      padding-left: 4px;
    }
    .rowValue {
      width: 100px;
      text-align: right;
      padding-right: 8px;
      font-size: 24px;
      font-weight: bold;
      line-height: 24px;
      font-family: "Cambria", "Helvetica Neue", helvetica, arial, verdana, sans-serif;
    }
    .rowUnit {
      width: 50px;
      line-height: 28px;
    }
  }
}

// 以下为 color
.primaryColor {
  color: rgb(16, 142, 233);
}

.cellBtn {
  border-radius: 2px;
  margin-left: 4px;
  width: 32px;
}
</style>
